//iChannel  纹理通道

#iChannel0 "https://s2.loli.net/2024/01/03/e18pYRzvomEJZxT.jpg" //
#iChannel1 "https://s2.loli.net/2024/01/03/soIYhJ4HefjTvSa.jpg"
vec4 getColor1(vec2 uv){
    return texture2D(iChannel0,uv);
}
vec4 getColor2(vec2 uv){
    return texture2D(iChannel1,uv);    
}
void mainImage(out vec4 fragColor,in vec2 fragCoord){
    vec2 uv = fragCoord.xy/iResolution.xy;
    //自适应
    float  rate = iResolution.x/iResolution.y;
    uv*rate;
    //mix 转场       
    float progress = iMouse.x/iResolution.x; //鼠标位置在当前屏幕位置
    vec4 col1 = getColor1(uv);
    vec4 col2 = getColor2(uv);
    // vec4 col = mix(col1,col2,progress);
    //卷帘
    vec4 col = mix(col1,col2,1.-step(progress,uv.x));
    fragColor = col;
}